﻿<%@ Page Title="公告管理" Language="C#" MasterPageFile="~/Admin/layout.master" AutoEventWireup="true"
    CodeBehind="Bulletin.aspx.cs" Inherits="Sunimage.Spjg.Web.Admin.Bulletin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href='<%=ResolveUrl("~/Themes/Default/Admin/Bulletin.css") %>' type="text/css"
        rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphWorkspace" runat="server">
    <div class="ToolPanel">
        <span style="margin-left: 20px;"><a href="BulletinAdd.aspx">添加公告</a> </span>
    </div>
    <div class="DataPanel">
        <asp:GridView ID="gvList" Width="100%" AutoGenerateColumns="false" runat="server"
            SkinID="List" DataKeyNames="ID" AllowPaging="true" PageSize="20" OnRowCommand="gvList_RowCommand"
            OnRowDataBound="gvList_RowDataBound">
            <Columns>
                <asp:TemplateField HeaderText="No.">
                    <ItemStyle CssClass="listNo" />
                    <ItemTemplate>
                        <asp:Literal ID="LtrNo" runat="server"></asp:Literal></ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="标题">
                    <ItemTemplate>
                        <%# Eval("Title")%>
                    </ItemTemplate>
                    <ItemStyle CssClass="Title" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="内容">
                    <ItemTemplate>
                        <%# Eval("Content")%>
                    </ItemTemplate>
                    <ItemStyle CssClass="Content" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="创建时间">
                    <ItemTemplate>
                        <%# Eval("CreateTime")%>
                    </ItemTemplate>
                    <ItemStyle CssClass="datetime" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="&#160;">
                    <ItemTemplate>
                        <asp:ImageButton ID="lbtnEdit" runat="server" SkinID="ListEdit" ToolTip="修改用户信息"
                            CommandName="EditUser" CommandArgument='<%#Eval("Id") %>'></asp:ImageButton>
                        <asp:ImageButton ID="lbtnDel" OnClientClick="return confirm('确定要删除本公告吗?');" runat="server"
                            SkinID="ListDelete" CommandName="DeleteUser" CommandArgument='<%#Eval("Id") %>'>
                        </asp:ImageButton>
                    </ItemTemplate>
                    <ItemStyle CssClass="listOp" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div class="PagerPanel">
        <webdiyer:AspNetPager ID="pager" runat="server" ShowPageIndexBox="Always" PageIndexBoxType="DropDownList"
            CssClass="paginator" CurrentPageButtonClass="cpb" TextBeforePageIndexBox="Page: "
            HorizontalAlign="Justify" PageSize="20" AlwaysShow="true" OnPageChanged="pager_PageChanged"
            CustomInfoHTML="共%PageCount%页，共%RecordCount%条数据" ShowCustomInfoSection="Right">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>
